package com.tensquare.spit;

import com.tensquare.common.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/10/13 7:06 下午
 */
@SpringBootApplication
public class SpitApplication {
    public static void main(String[]args){
        SpringApplication.run(SpitApplication.class, args);
    }

    @Bean
    public IdWorker idWorkker(){
        return new IdWorker(1, 1);
    }
}
